//
//  JSMTouringUserModel.m
//  TakeYouTourTogether
//
//  Created by dllo on 15/11/30.
//  Copyright © 2015年 king. All rights reserved.
//

#import "JSMTouringUserModel.h"

@implementation JSMTouringUserModel
- (instancetype)initWithCoder:(NSCoder *)aDecoder{
    self = [super init];
    if (self) {
        self.nickname = [aDecoder decodeObjectForKey:@"nickname"];
        self.avatar = [aDecoder decodeObjectForKey:@"avatar"];
        self.gender = [aDecoder decodeObjectForKey:@"gender"];
        self.location = [aDecoder decodeObjectForKey:@"location"];
    }
    return self;
}
- (void)encodeWithCoder:(NSCoder *)aCoder{
    [aCoder encodeObject:self.nickname forKey:@"nickname"];
    [aCoder encodeObject:self.avatar forKey:@"avatar"];
    [aCoder encodeObject:self.gender forKey:@"gender"];
    [aCoder encodeObject:self.location forKey:@"location"];
}
@end
